package com.atguigu.flink0922.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author lizhenchao@atguigu.cn
 * @Date 2021/3/8 16:05
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageCount implements Comparable<PageCount>{
    private String url;
    private Long count;
    private Long windowEnd;
    
    @Override
    public int compareTo(PageCount o) {
        if(this.count < o.count) return -1;
        else return 1;
    }
}

